from django.conf.urls.defaults import *


urlpatterns = patterns('garetjax.gallery.views',
    # Users
    #url(r'^$', 'index', name="photos.index"),
    #url(r'^collection/(?P<collection_id>\d+)$', 'collection', name="photos.collection"),
    #url(r'^set/(?P<set_id>\d+)$', 'set', name="photos.set"),
    #url(r'^photo/(?P<photo_id>\d+)$', 'photo', name="photos.photo"),
    #
    url(r'^$', 'index', name="photos.index"),
    url(r'^collection/(?P<collection_id>\d+)/$', 'display_collection', name="photos.collection"),
    url(r'^album/(?P<set_id>\d+)/$', 'display_set', name="photos.set"),
    url(r'^photo/(?P<photo_id>\d+)/$', 'display_photo', name="photos.photo"),
    
    # Admin
    url(r'^import/$', 'import_album', name="photos.import"),
    url(r'^album/(?P<set_id>\d+)/edit/$', 'edit_set', name="photos.set.edit"),
    
    url(r'^xhr/get/(?P<container>collection|set)/(?P<container_id>\d+)/$', 'xhr_get_photos')
)
